package com.xonro.common.histrans.sfeg.job;

import com.actionsoft.bpms.org.cache.UserMapCache;
import com.actionsoft.bpms.schedule.IJob;
import com.actionsoft.sdk.local.SDK;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class FreshDeptDataJob implements IJob {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        SDK.getORGAPI().reloadUser();
        SDK.getORGAPI().reloadDepartment();
        SDK.getORGAPI().reloadRole();
        SDK.getORGAPI().reloadCompany();
        UserMapCache.getCache().reload();
    }
}
